<?php

/*
 |--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


//
Route::group(['namespace' => 'Admin','prefix' => 'admin'],function(){

    Route::get('index', 'Admin_IndexController@index');

    //用户相关路由
   Route::resource('user','Admin_UserController');

    //栏目相关路由
   Route::resource('cat','Admin_userController');
   
    //发帖路由
    Route::resource('post','PostController');

    //管理员登陆相关路由
    Route::get('login','Admin_UserController@getLogin');
    Route::post('login','Admin_UserController@postLogin');
   Route::get('logout','Admin_userController@getLogout');

    //管理员用户相关路由
    Route::resource('adminUser','Admin_UserController');
    //管理员删除相关路由
    Route::post('del','Admin_UserController@delete');
});



